import React from 'react'
import { AtIcon } from 'taro-ui'
import Taro from '@tarojs/taro'
import {View,Text} from '@tarojs/components'

import './index.scss'

export default function ShowCart (){
  function goToShopping(){
  Taro.switchTab({
    url: '/pages/shopping/index'
  })
  }
  return (
    <View className='show_cart' onClick={() => {goToShopping()}}>
      <AtIcon value='shopping-cart' size='20' color='#fff' />
      <Text className='cart_txt'>￥0</Text>
    </View>
  )
}
